package cn.vastbase.mybatis.example.dataobject;

import java.time.LocalDateTime;

/**
 * 用户 DO
 */
public class ExampleDO {

    private Integer id;
    /**
     * 账号
     */
    private String username;
    /**
     * 密码（明文）
     * <p>
     * ps：生产环境下，千万不要明文噢
     */
    private String password;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public ExampleDO() {
    }

    public ExampleDO(String username, String password, LocalDateTime createTime) {
        this.username = username;
        this.password = password;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "ExampleDO{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
